package com.pinxixi.content.controller;

import com.pinxixi.api.content.ContentCategoryControllerApi;
import com.pinxixi.content.service.ContentCategoryService;
import com.pinxixi.framework.domain.content.ContentCategory;
import com.pinxixi.framework.model.response.ListResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/contentCategory")
public class ContentCategoryController implements ContentCategoryControllerApi {

    @Autowired
    private ContentCategoryService contentCategoryService;

    @Override
    @GetMapping("/findAll")
    public ListResponseResult<ContentCategory> findAll() {
        return contentCategoryService.findAll();
    }
}
